package com.ayh.campusfun.vo;

import lombok.Data;

/**
 * @author ayh
 * @create 2021/5/11 10:05
 */

@Data
public class CommonMessageVO {
    /** 消息类型: 1、修改在线时长；2、广播消息 */
    private Integer messageType;
    private Integer onlineCount;
    private Object data;

    public static CommonMessageVO build(Integer messageType,Integer onlineCount,Object data){
        CommonMessageVO commonMessageVO = new CommonMessageVO();
        commonMessageVO.setMessageType(messageType);
        commonMessageVO.setOnlineCount(onlineCount);
        commonMessageVO.setData(data);
        return commonMessageVO;
    }
}
